<?php

use Phinx\Migration\AbstractMigration;

class AddIsAssigneeColumnInTaskTable extends AbstractMigration
{
    public function up()
    {
        $this->table("task")
            ->addColumn('is_assignee', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => ' 是否已经分配'])
            ->save();
    }

    public function down()
    {
        $this->table("task")->removeColumn("is_assignee")->save();
    }
}
